﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using NHibernate.Cfg;
using Tdv.Wfrp.CharacterGenerator.Domain.Characteristics;
using NHibernate.Tool.hbm2ddl;
using Tdv.Wfrp.CharacterGenerator.Infrastructure.Repositories;

namespace Tdv.Wfrp.CharacterGenerator.Test.Infrastructure
{
    [TestClass]
    public class GenerateSchema
    {
        [TestMethod]
        public void GenerateSchemaInitial()
        {
            Configuration cfg = new Configuration();
            cfg.Configure();
            cfg.AddAssembly(typeof(CharacteristicRepository).Assembly);

            new SchemaExport(cfg).Execute(false, true, false);
        }
    }
}
